﻿<%@ Page Title="Respuesta de Venta Externa" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true" CodeBehind="wFrmVentaExternaRespuesta.aspx.cs" Inherits="Crosland.Automotriz.Web.Vehiculos.wFrmVentaExternaRespuesta" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dx" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajax" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxDataView" tagprefix="dx" %>

<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxCallback" tagprefix="dx1" %>
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">

    <script type="text/javascript">
        function MostrarAlerta() {
            popupErrores.Show();
        }

        function swipe(img) {
            var imagen = img;
            var url = imagen.getAttribute('src');
            window.open(url, 'Image', 'width=800,height=650,resizable=0');
        }

        function popupReporte() {
            pcReporte.Show();
        }

    </script>

    <div class="main-header" style="width:100%;">
        <div class="main-titulo" style="text-align: left">
            Confirmación de Venta Externa</div>
    </div>
    <table width="100%">
        <tr>
            <td width="125">
                <dx:ASPxButton ID="btnVerDetalle" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Text="Ver Detalle" Width="120px" onclick="btnVerDetalle_Click">
                    <Image Url="~/Images/search.png">
                    </Image>
                </dx:ASPxButton>
            </td>
            <td width="105">
                            <dx:ASPxButton runat="server" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aprobar" 
                    CssPostfix="Office2010Blue" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" Width="100px" 
                    ID="btnGrabarSolicitudAprobado" OnClick="btnGrabarSolicitudAprobado_Click">
<ClientSideEvents Click="function(s, e) {
	e.processOnServer = confirm('¿Seguro de aprobar la venta?');
}"></ClientSideEvents>

<Image Url="~/Images/ok.png"></Image>
</dx:ASPxButton>

            </td>
            <td width="105">
                            <dx:ASPxButton runat="server" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Rechazar" 
                    CssPostfix="Office2010Blue" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" Width="100px" 
                    ID="btnGrabarSolicitudRechazado" OnClick="btnGrabarSolicitudRechazado_Click">
                                <ClientSideEvents Click="function(s, e) {
	e.processOnServer = confirm('¿Seguro de rechazar la venta?');
}" />
<Image Url="~/Images/delete.png"></Image>
</dx:ASPxButton>

            </td>
            <td width="105">
                <dx:ASPxButton ID="btnImprimir" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" onclick="btnImprimir_Click" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Imprimir" 
                    Width="100px">
                    <Image Url="~/Images/imprimir.gif">
                    </Image>
                </dx:ASPxButton>
            </td>
            <td>
                <dx:ASPxButton ID="btnSalir" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Salir" 
                    Width="100px" onclick="btnSalir_Click">
                    <Image Url="~/Images/logout.png">
                    </Image>
                </dx:ASPxButton>
            </td>
        </tr>
    </table>
    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
        GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
        HeaderText="Consulta" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100%">
        <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
            PaddingTop="10px" />
<ContentPaddings PaddingLeft="9px" PaddingTop="10px" PaddingRight="11px" 
            PaddingBottom="10px"></ContentPaddings>

        <HeaderStyle>
        <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
            PaddingTop="3px" />
<Paddings PaddingLeft="9px" PaddingTop="3px" PaddingRight="11px" PaddingBottom="6px"></Paddings>
        </HeaderStyle>
        <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
    <table width="100%">
        <tr>
            <td style="width: 35px">
                <asp:Label ID="Label1" runat="server" Text="Año:"></asp:Label>
            </td>
            <td style="width: 105px">
                <dx:ASPxComboBox ID="cboAño" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" Spacing="0" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100px">
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <ButtonStyle Width="13px">
                    </ButtonStyle>
                    <Paddings PaddingLeft="5px" />

<Paddings PaddingLeft="5px"></Paddings>
                </dx:ASPxComboBox>
            </td>
            <td style="width: 34px">
                <asp:Label ID="Label2" runat="server" Text="Mes:"></asp:Label>
            </td>
            <td width="105">
                <dx:ASPxComboBox ID="cboMes" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" Spacing="0" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Width="100px" SelectedIndex="0">
                    <Items>
                        <dx:ListEditItem Selected="True" Text="Enero" Value="1" />
                        <dx:ListEditItem Text="Febrero" Value="2" />
                        <dx:ListEditItem Text="Marzo" Value="3" />
                        <dx:ListEditItem Text="Abril" Value="4" />
                        <dx:ListEditItem Text="Mayo" Value="5" />
                        <dx:ListEditItem Text="Junio" Value="6" />
                        <dx:ListEditItem Text="Julio" Value="7" />
                        <dx:ListEditItem Text="Agosto" Value="8" />
                        <dx:ListEditItem Text="Setiembre" Value="9" />
                        <dx:ListEditItem Text="Octubre" Value="10" />
                        <dx:ListEditItem Text="Noviembre" Value="11" />
                        <dx:ListEditItem Text="Diciembre" Value="12" />
                    </Items>
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <ButtonStyle Width="13px">
                    </ButtonStyle>
                    <Paddings PaddingLeft="5px" />

<Paddings PaddingLeft="5px"></Paddings>
                </dx:ASPxComboBox>
            </td>
            <td style="width: 48px">
                <asp:Label ID="Label3" runat="server" Text="Estado:"></asp:Label>
            </td>
            <td width="185">
                <dx:ASPxComboBox ID="cboEstado" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" Spacing="0" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="180px">
                    <loadingpanelimage url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </loadingpanelimage>
                    <loadingpanelstyle imagespacing="5px">
                    </loadingpanelstyle>
                    <buttonstyle width="13px">
                    </buttonstyle>
                    <paddings paddingleft="5px" />
                </dx:ASPxComboBox>
            </td>
            <td style="width: 70px">
                <asp:Label ID="Label28" runat="server" Text="Supervisor:"></asp:Label>
            </td>
            <td width="185">
                <dx:ASPxComboBox ID="cboSupervisor" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" Spacing="0" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="200px">
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <ButtonStyle Width="13px">
                    </ButtonStyle>
                    <Paddings PaddingLeft="5px" />
                </dx:ASPxComboBox>
            </td>
            <td>
                <dx:ASPxButton ID="btnConsultar" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" OnClick="btnConsultar_Click" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Consultar" 
                    Width="100px">
                    <image url="~/Images/search.png">
                    </image>
                </dx:ASPxButton>
                <asp:Label ID="lblIdOrgVenta" runat="server" Visible="False"></asp:Label>
                <asp:Label ID="lblNumeroFactura" runat="server" Visible="False"></asp:Label>
                <asp:Label ID="lblNroPosicion" runat="server" Visible="False"></asp:Label>
            </td>
        </tr>
    </table>
            </dx:PanelContent>
</PanelCollection>
    </dx:ASPxRoundPanel>
    <dx:ASPxGridView ID="gv" runat="server" Caption="Listado de Ventas" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" Width="100%" AutoGenerateColumns="False" 
        KeyFieldName="ID_VENTA_EXTERNA">
        <Columns>
            <dx:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0" 
                Width="50px">
            </dx:GridViewCommandColumn>
            <dx:GridViewDataTextColumn Caption="Modelo" FieldName="DES_MODELO" 
                VisibleIndex="3" Width="140px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="VIN" FieldName="NRO_VIN" VisibleIndex="4" 
                Width="150px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Fecha de &lt;/br&gt;Venta" FieldName="FEC_FACTURA" 
                VisibleIndex="5" Width="80px">
                <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                </PropertiesTextEdit>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Estado" FieldName="DES_LARGA_ESTADO" 
                VisibleIndex="16" Width="220px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Fecha Venta &lt;/br&gt;Público" 
                FieldName="FEC_VTA_PUBLICO" VisibleIndex="6" Width="80px">
                <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                </PropertiesTextEdit>
                <CellStyle BackColor="#D7F2FF">
                </CellStyle>
                <CellStyle BackColor="#D7F2FF">
                </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Cliente" FieldName="DES_CLIENTE_FINAL" 
                VisibleIndex="7" Width="150px">
                <CellStyle BackColor="#D7F2FF">
                </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="NIF" FieldName="NIF_CLIENTE_FINAL" 
                VisibleIndex="8">
                <CellStyle BackColor="#D7F2FF">
                </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Tipo de &lt;/br&gt;Transformación" 
                FieldName="DES_LARGA_TIPO" VisibleIndex="9">
                <PropertiesTextEdit DisplayFormatString="{0:N2}">
                </PropertiesTextEdit>
                <CellStyle BackColor="#D7F2FF">
                </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Precio de &lt;/br&gt;Venta" FieldName="IMP_VALOR_VTA" 
                VisibleIndex="10" Width="70px">
                <PropertiesTextEdit DisplayFormatString="{0:N2}">
                </PropertiesTextEdit>
                <CellStyle BackColor="#D7F2FF">
                </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="IGV" FieldName="IMP_IGV_VTA" 
                VisibleIndex="11" Width="70px">
                <PropertiesTextEdit DisplayFormatString="{0:N2}">
                </PropertiesTextEdit>
                <CellStyle BackColor="#D7F2FF">
                </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Precio &lt;/br&gt;Total" FieldName="IMP_TOTAL_VTA" 
                VisibleIndex="12" Width="70px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Precio Crosland" FieldName="PrecioCrosland" 
                VisibleIndex="13">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Diferencia" FieldName="Diferencia" 
                VisibleIndex="15">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="ID_VENTA_EXTERNA" 
                FieldName="ID_VENTA_EXTERNA" Visible="False" VisibleIndex="14">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Distribuidor" FieldName="DES_CLIENTE" 
                VisibleIndex="1">
            </dx:GridViewDataTextColumn>
        </Columns>
        <SettingsBehavior AllowDragDrop="False" AllowGroup="False" 
            AllowSelectByRowClick="True" 
            AllowSort="False" AllowFocusedRow="True" />
        <SettingsPager Mode="ShowAllRecords">
        </SettingsPager>
        <Settings ShowGroupButtons="False" ShowHorizontalScrollBar="True" 
            ShowVerticalScrollBar="True" />
        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
            </LoadingPanelOnStatusBar>
            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
            </LoadingPanel>
        </Images>
        <ImagesFilterControl>
            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
            </LoadingPanel>
        </ImagesFilterControl>
        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
            CssPostfix="Office2010Blue">
            <Header ImageSpacing="5px" SortingImageSpacing="5px">
            </Header>
            <LoadingPanel ImageSpacing="5px">
            </LoadingPanel>
        </Styles>
        <StylesPager>
            <PageNumber ForeColor="#3E4846">
            </PageNumber>
            <Summary ForeColor="#1E395B">
            </Summary>
        </StylesPager>
        <StylesEditors ButtonEditCellSpacing="0">
            <ProgressBar Height="21px">
            </ProgressBar>
        </StylesEditors>
    </dx:ASPxGridView>

          <dx:ASPxPopupControl ID="pcNuevo" runat="server" AllowDragging="True" 
              ClientIDMode="Static" ClientInstanceName="pcNuevo" CloseAction="CloseButton" 
              CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
              CssPostfix="Office2010Blue" EnableHotTrack="False" HeaderText="Detalle del Vehículo" 
              Modal="True" PopupHorizontalAlign="WindowCenter" 
              PopupVerticalAlign="WindowCenter" 
              SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        Width="750px">
              <HeaderImage Url="~/Images/search.png">
              </HeaderImage>
              <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
              </LoadingPanelImage>
              <HeaderStyle>
              <Paddings PaddingLeft="7px" />
              </HeaderStyle>
              <LoadingPanelStyle ImageSpacing="5px">
              </LoadingPanelStyle>
              <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">


    <asp:Panel ID="Panel1" runat="server" BackColor="#E4EFFA" 
        Width="100%">
        <table bgcolor="#E4EFFA" width="100%">
            <tr>
                <td class="main-separator" style="width: 3px">
                    &nbsp;</td>
                <td class="style11">
                    <asp:Label ID="Label13" runat="server" Font-Bold="True" Text="Marca:"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblMarca" runat="server"></asp:Label>
                </td>
                <td class="style8">
                    <asp:Label ID="Label14" runat="server" Font-Bold="True" Text="Modelo:"></asp:Label>
                </td>
                <td colspan="3">
                    <asp:Label ID="lblModelo" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="main-separator" style="width: 3px">
                    &nbsp;</td>
                <td class="style11">
                    <asp:Label ID="Label19" runat="server" Font-Bold="True" Text="N° Asientos:"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblAsientos" runat="server"></asp:Label>
                </td>
                <td class="style8">
                    <asp:Label ID="Label18" runat="server" Font-Bold="True" Text="N° Ruedas:"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblNroRuedas" runat="server"></asp:Label>
                </td>
                <td class="style9">
                    <asp:Label ID="Label17" runat="server" Font-Bold="True" Text="N° Motor:"></asp:Label>
                </td>
                <td style="width: 90px">
                    <asp:Label ID="lblNroMotor" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="main-separator" style="width: 3px">
                    &nbsp;</td>
                <td class="style11">
                    <asp:Label ID="Label16" runat="server" Font-Bold="True" Text="Color:"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblColor" runat="server"></asp:Label>
                </td>
                <td class="style8">
                    <asp:Label ID="Label15" runat="server" Font-Bold="True" Font-Italic="False" 
                        Text="Año Fab.:"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblAnioFabricacion" runat="server"></asp:Label>
                </td>
                <td class="style9">
                    <asp:Label ID="Label24" runat="server" Font-Bold="True" Text="Combustible:"></asp:Label>
                </td>
                <td style="width: 90px">
                    <asp:Label ID="lblCombustible" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="main-separator" style="width: 3px">
                    &nbsp;</td>
                <td class="style11">
                    <asp:Label ID="Label20" runat="server" Font-Bold="True" Text="Longitud(mm.):"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblLongitud" runat="server"></asp:Label>
                </td>
                <td class="style8">
                    <asp:Label ID="Label21" runat="server" Font-Bold="True" Text="Ancho(mm.):"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblAncho" runat="server"></asp:Label>
                </td>
                <td class="style9">
                    <asp:Label ID="Label22" runat="server" Font-Bold="True" Text="Altura(mm.):"></asp:Label>
                </td>
                <td style="width: 90px">
                    <asp:Label ID="lblAltura" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="main-separator" style="width: 3px">
                    &nbsp;</td>
                <td class="style11">
                    <asp:Label ID="Label25" runat="server" Font-Bold="True" Text="Peso Bruto(kg.):"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblPesoBruto" runat="server"></asp:Label>
                </td>
                <td class="style8">
                    <asp:Label ID="Label26" runat="server" Font-Bold="True" Text="Peso Neto(kg.):"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblPesoNeto" runat="server"></asp:Label>
                </td>
                <td class="style9">
                    <asp:Label ID="Label27" runat="server" Font-Bold="True" Text="N° Cilindros:"></asp:Label>
                </td>
                <td style="width: 90px">
                    <asp:Label ID="lblNroCilindros" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="main-separator" style="width: 3px">
                    &nbsp;</td>
                <td class="style11">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td class="style8">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td class="style9">
                    &nbsp;</td>
                <td style="width: 90px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="main-separator" style="width: 3px">
                    &nbsp;</td>
                <td class="style11" colspan="6">
                    <dx:ASPxDataView ID="dvFotos" runat="server" AllowPaging="False" 
                        ColumnCount="4" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" PagerPanelSpacing="0px" RowPerPage="1" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                        <ItemTemplate>
                            <asp:ImageButton ID="ibFoto" runat="server" Height="100px"  ClientIDMode="Static"
                                ImageUrl='<%# Bind("DES_RUTA_ARCHIVO") %>' Width="100px" OnClientClick="swipe(this)" />
                        </ItemTemplate>
                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                        </LoadingPanelImage>
                        <LoadingPanelStyle ImageSpacing="5px">
                        </LoadingPanelStyle>
                        <DisabledStyle ForeColor="#B2B7BD">
                        </DisabledStyle>
                    </dx:ASPxDataView>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <ajax:RoundedCornersExtender ID="rce0" runat="server"
    TargetControlID="Panel1"
    Radius="15"
    Corners="All" Color="228, 239, 250" />


    <table width="100%">
        <tr>
            <td align="right">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="right" width="105">
                            <dx:ASPxButton ID="btnSalirPopup" runat="server" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Salir" 
                                Width="100px">
                                <ClientSideEvents Click="function(s, e) {
	pcNuevo.Hide();
}" />
                                <Image Url="~/Images/logout.png">
                                </Image>
                            </dx:ASPxButton>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
                  </dx:PopupControlContentControl>
</ContentCollection>
          </dx:ASPxPopupControl>


          <dx:ASPxPopupControl ID="popupErrores" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupErrores" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
              Width="300px" EnableHotTrack="False">
                
                    <HeaderImage Url="~/Images/icon_message.png">
                    </HeaderImage>
                
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel3" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent2" runat="server">
                        <table width="100%">
                        <tr>
                        <td align="center" valign="middle">
                        
                        
                        
                            <asp:Label ID="lblMensaje" runat="server"></asp:Label>
                            <br /> &nbsp;</td>
                        
                        </tr>
                        <tr>
                        <td align="center">
                        
                       
                            <dx:ASPxButton ID="ASPxButton6" runat="server" AutoPostBack="False" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupErrores.Hide();
}" />
                                <Image Url="~/Images/ok.png">
                                </Image>
                            </dx:ASPxButton>
                        
                        </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>


    <dx:ASPxPopupControl ID="pcReporte" runat="server" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" EnableHotTrack="False" 
        HeaderText="Vista Previa / Imprimir" Height="500px" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        Width="1100px" AppearAfter="0" CloseAction="CloseButton" 
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
        ClientInstanceName="pcReporte" AllowDragging="True" Modal="True" 
        ClientIDMode="Static">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle>
        <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
<dx:popupcontrolcontentcontrol runat="server" SupportsDisabledAttribute="True">


                                <rsweb:ReportViewer ID="rvPopupReporte" 
        runat="server" Width="100%"
                                style="padding-top:0; margin-top:0; top:0; vertical-align:top"
                                BackColor="#F2F2F2"  ShowFindControls="False" 
                                ShowZoomControl="False" SplitterBackColor="White" 
                                Height="420px" PromptAreaCollapsed="False" 
        KeepSessionAlive="False" ShowBackButton="False" ShowCredentialPrompts="False" 
        ShowDocumentMapButton="False" ShowPageNavigationControls="False" 
        ShowParameterPrompts="False" ShowPromptAreaButton="False" 
        ShowRefreshButton="False" ShowWaitControlCancelLink="False" 
        ProcessingMode="Remote">
                                    <ServerReport ReportServerUrl="/SAP_Vehiculos/rsVentaMensualMayorista" />
                                </rsweb:ReportViewer>

</dx:popupcontrolcontentcontrol>
</ContentCollection>
    </dx:ASPxPopupControl>





          </asp:Content>
